/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package message;

import java.net.InetAddress;
import java.io.PrintWriter;
import server.RunnableServer;

/**
 *
 * @author kinder_
 */
public class Message {

    String[] data;
    String id;
    InetAddress ip;
    int port;
    PrintWriter out;
    RunnableServer myCreator;

    public Message(RunnableServer myCreator, InetAddress ip,int port, PrintWriter out)
    {
        this.myCreator = myCreator;
        this.ip = ip;
        this.port = port;
        this.out = out;
    }

    public void setData(String[] data)
    {
        this.data = data;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String[] retData()
    {
        return data;
    }

    public String getId()
    {
        return id;
    }
    
    public RunnableServer getMyCreator()
    {
        return this.myCreator;
    }

    public PrintWriter getSockOutput()
    {
        return this.out;
    }
}
